package com.zdb.java.thread;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

public class AQSDemo {

    public static void main(String[] args) throws Exception {

        Lock lock = new ReentrantLock();
        Condition condition = lock.newCondition();

        lock.lock();
        try {

           condition.await();
        } finally {
            lock.unlock();
        }

    }
}
